import { unlink } from 'fs/promises';
import { resolve } from 'path';
import { Injectable } from '@nestjs/common';

@Injectable()
export class UploadService {
    remove(url: string) {
        return unlink(resolve(process.cwd(), `public/${url}`));
    }
}
